package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户得分对象 user_score
 * 
 * @author ruoyi
 * @date 2024-11-18
 */

public class UserScore extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户得分表主键id */
    @Excel(name= "用户得分表主键id")
    private Integer scoreId;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;

    /** 评估项目Id */
    @Excel(name = "评估项目Id")
    private Integer categoryId;

    /** 得分 */
    @Excel(name = "得分")
    private double score;

    /** 评分日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "评分日期", width = 30, dateFormat = "yyyy-MM-dd")
    private String ratingDate;

    /** 评分人编号 */
    @Excel(name = "评分人编号")
    private Integer raterNum;

    /** 考核日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "考核日期", width = 30, dateFormat = "yyyy-MM-dd")
    private String assessDate;


    public void setScoreId(Integer scoreId)
    {
        this.scoreId = scoreId;
    }

    public Integer getScoreId()
    {
        return scoreId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public Integer getCategoryId() {
        return categoryId;
    }

    public void setCategoryId(Integer categoryId) {
        this.categoryId = categoryId;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }

    public String getRatingDate() {
        return ratingDate;
    }

    public void setRatingDate(String ratingDate) {
        this.ratingDate = ratingDate;
    }

    public Integer getRaterNum() {
        return raterNum;
    }

    public void setRaterNum(Integer raterNum) {
        this.raterNum = raterNum;
    }

    public String getAssessDate() {
        return assessDate;
    }

    public void setAssessDate(String assessDate) {
        this.assessDate = assessDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("scoreId", getScoreId())
            .append("userId", getUserId())
            .append("categoryId", getCategoryId())
            .append("score", getScore())
            .append("ratingDate", getRatingDate())
            .append("raterNum", getRaterNum())
            .append("assessDate", getAssessDate())
            .toString();
    }
}
